import React from 'react'
import {Route, Switch} from 'react-router-dom'
import AuthLayout from './auth/AuthLayout'
import MainLayout from './main/MainLayout'

const AppLayout: React.FC<{}> = (): React.ReactElement => {
  return (
    <Switch>
      <Route path={'/auth'} component={AuthLayout} />
      <Route path={'/'} component={MainLayout} />
    </Switch>
  )
}

export default AppLayout
